package com.ztools;

import android.app.Application;

import com.blankj.utilcode.util.Utils;

/**
 * Created by zhangxuehui on 2018/6/9.
 */

public abstract class BaseApplication extends Application {

    private String mUrl;

    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);
        setUrl(getBaseUrl());
    }

    /**
     * 设置项目服务器的url
     * @return
     */
    protected abstract String getBaseUrl();

    public String getUrl() {
        return mUrl;
    }

    public void setUrl(String mUrl) {
        this.mUrl = mUrl;
    }
}
